#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char const *argv[])
{
	const char* inst = argv[1];
	const char* nomep = argv[2];
	long long int CPFp = atoll(argv[3]);
	long int RGp = atol(argv[4]);
	const char* cargop = argv[5];
	int num = atoi(argv[6]);
	int i;
	for (i = 0; i < num; ++i)
	{
		printf("%s\n",inst );
		printf("%s%d\n",nomep,i );
		printf("%d\n",CPFp + i );
		printf("%d\n",RGp + i );
		printf("%s%d\n",cargop,i );
	}
	printf("4\n" );
	return 0;
}